package com.zcc.makingfriend.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author zcc
 */
@Data
public class Article {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String uuid;
    private String title;
    private String content;
    private String imgUrl;
    private Long likes;
    private Integer status;
    private Long commentId;
    private String author;
    private Long authorId;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime created;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updated;
}
